home *** CD-ROM | disk | FTP | other *** search
/ Tech Multimedia News 4 / Tech Multimedia News #4 (1994).iso / share / dos / chiaro / chils.doc < prev    next >
Encoding:
Text File  |  1993-03-18  |  59.5 KB  |  1,250 lines

  1. CHILS 1.1 DOCUMENTATION
  2. =======================
  3. James W. Birdsall
  4. 03/19/93
  5.  
  6.  
  7. 0. CONTENTS
  8. -----------
  9.    0.      CONTENTS
  10.    1.      INTRODUCTION
  11.     1.1     Quick Reference
  12.     1.2     Copyright, License, and Warranty Disclaimer
  13.   2.       USAGE
  14.    2.1      Targets
  15.     2.1.1    Wildcards
  16.    2.2      Options
  17.     2.2.1    -t Type
  18.     2.2.2    -s Complex Search
  19.     2.2.3    -v Verbose
  20.     2.2.4    -f Front End
  21.     2.2.5    -n No Truncate
  22.     2.2.6    -w Width
  23.     2.2.7    -# Version
  24.     2.2.8    -? Help
  25.   3.       CONFIGURATION FILE
  26.   4.       OUTPUT
  27.    4.1      GIF87a
  28.    4.2      GIF89a
  29.    4.3      IMG_1
  30.    4.4      JFIF1.01
  31.    4.5      SUNRAS
  32.    4.6      TARGA
  33.    4.7      PBM, PGM, PPM, PBM_RAW, PGM_RAW, PPM_RAW
  34.    4.8      XBM
  35.    4.9      WIN2BMP
  36.    4.10     OS2BMP11
  37.    4.11     WIN3BMP
  38.    4.12     OS2BMP20
  39.    4.13     PCX
  40.   5.       THE END
  41.  
  42.  
  43. 1. INTRODUCTION
  44. ---------------
  45.  
  46.    CHILS is a program of the Chiaro suite. It produces a quick listing
  47. of information about image files of many formats. Since it is not
  48. specific to any one format, it has been given the CHI- prefix instead of
  49. a particular format prefix. It automatically recognizes a variety of
  50. image formats. The information printed includes file name, file format,
  51. file size, and some details of image size, colors, etc., depending on
  52. what information the format contains and how accessible it is.
  53.  
  54.    The Chiaro suite is also available for UNIX systems.
  55.  
  56.  1.1 Quick Reference
  57.  -------------------
  58.  
  59.     This is a quick summary of the usage and options of CHILS. Invoking
  60. CHILS with the option "-?" will produce a similar summary. Complete
  61. explanations may be found in section 2.
  62.  
  63.    usage: chils [options] [target] [target target...]
  64.       target       filename, filename with wildcards, or path. Wildcards
  65.                    are *, ?, and ranges or groups specified in []. A
  66.                    range or group may be complemented with ^ or !.
  67.  
  68.      -tformat     TYPE: Only files of the specified format will be
  69.                    processed. Ignores the -v option. Multiple -t options
  70.                    may be specified. The identifiers recognized (case
  71.                    insensitive) are:
  72.  
  73.                         identifier      meaning
  74.                         -----------------------------
  75.                         GIF87a          GIF87a files
  76.                         GIF89a          GIF89a files
  77.                         GIF             Any GIF file, either GIF87a or GIF89a
  78.                         IMG_1           GEM IMG version 1 file
  79.                         IMG             Any GEM IMG file (only version 1
  80.                                          known to exist)
  81.                         JFIF101         JPEG File Interchage Format
  82.                                          version 1.00/1.01
  83.                         JFIF            Any JFIF file (only versions 1.00-1.01
  84.                                          known to exist)
  85.                         SUNRAS          Sun raster files
  86.                         TARGA           TARGA files
  87.                         PBM_NORM        Portable BitMap files, ASCII format
  88.                         PBM_RAW         Portable BitMap files, raw format
  89.                         PBM             Any Portable BitMap file
  90.                         PGM_NORM        Portable GrayMap files, ASCII format
  91.                         PGM_RAW         Portable GrayMap files, raw format
  92.                         PGM             Any Portable GrayMap file
  93.                         PPM_NORM        Portable PixMap files, ASCII format
  94.                         PPM_RAW         Portable PixMap files, raw format
  95.                         PPM             Any Portable PixMap file
  96.                         XBM             X11 BitMap files
  97.                         WIN2BMP         MS-Windows 2.x bitmap files
  98.                         OS2BMP11        OS/2 1.1-1.3 bitmap files
  99.                         WIN3BMP         MS-Windows 3.x bitmap files
  100.                         OS2BMP20        OS/2 2.0 bitmap files
  101.                         BMP             Any BMP file
  102.                         PCX_25          PCX version 2.5 files
  103.                         PCX_28          PCX version 2.8 files without palettes
  104.                         PCX_28P         PCX version 2.8 files with palettes
  105.                         PCX_30          PCX version 3.0 files
  106.                         PCX             Any PCX file
  107.  
  108.       -spattern    COMPLEX SEARCH: Allows complicated Boolean searches
  109.                     based on height, width, colors, and format. Format
  110.                     keywords are as for the -t option, above. Decimal
  111.                     numbers are allowed. Other operators are:
  112.  
  113.          ( )   parentheses          =     equal           H     height
  114.          }     greater than         {     less than       W     width
  115.          }=    greater or equal     {=    less or equal   C     colors
  116.          +     logical and          ,     logical or      F     file length
  117.  
  118.                     Example: -s(W}=640+H}=480),(GIF+C=256) searches for
  119.                     images at least 640 by 480, or any size GIF with 256
  120.                     colors.
  121.  
  122.      -v           VERBOSE: Prints a line for every file checked, whether
  123.                    the format was recognized or not.
  124.  
  125.      -f           FRONT END: For use as front end for GIFSTRIP or other
  126.                    Chiaro suite programs. Prints list of matching files
  127.                    on stdout. Ignores the -v option.
  128.  
  129.      -n           NO TRUNCATE: Do not remove path from filename in display.
  130.  
  131.      -w[n]        WIDTH: Override width of display.
  132.  
  133.      -#           VERSION: Prints version information on internal
  134.                    modules.
  135.  
  136.      -?           HELP: Prints a usage message.
  137.  
  138.    Options are case insensitive, and may not be combined.
  139.  
  140.  1.2 Copyright, License, and Warranty Disclaimer
  141.  -----------------------------------------------
  142.  
  143.    The Graphics Interchange Format(c) is the Copyright property of
  144. CompuServe Incorporated. GIF(sm) is a Service Mark property of
  145. CompuServe Incorporated.
  146.  
  147.   SunOS is a trademark of Sun Microsystems Inc.
  148.  
  149.   Targa and TrueVision are probably trademarks of AT&T.
  150.  
  151.   MS-Windows is probably a trademark of Microsoft.
  152.  
  153.   OS/2 is a registered trademark of IBM.
  154.  
  155.   Other terms in this document may be trademarks or service marks of or
  156. copyright by various corporations and organizations.
  157.  
  158.    CHILS is not in the public domain. All the files are copyright 1993
  159. by James W. Birdsall, all rights reserved.
  160.  
  161.    The following license applies to the entire Chiaro suite, which is
  162. made up of all the files listed in the file MANIFEST. Permission is
  163. granted to do the following:
  164.  
  165.         You may freely redistribute this archive, so long as it contains
  166.         all the files listed in the file MANIFEST, intact and
  167.         unmodified.
  168.  
  169.         You may use the programs contained in this archive for a period
  170.         of 30 days for evaluation purposes.
  171.  
  172.    Payment of the $10 shareware fee (which covers all the programs in
  173. the Chiaro suite) licenses you to use the Chiaro suite beyond the
  174. evaluation period. This license-to-use specifically includes use by
  175. bulletin board systems and other commercial or private information
  176. services.
  177.  
  178.    Registered users will also receive update notices and bug reports,
  179. and are entitled to use future versions without further payment.
  180.  
  181.    The contents of the distribution archive, and all other related
  182. files, information, and services are provided "as is" and without
  183. warranty. To the extent permitted by applicable law, the author
  184. disclaims all warranties, express or implied, including but not limited
  185. to, any implied warranty of merchantability or fitness for a particular
  186. purpose. While effort has been made to ensure that the files,
  187. information, and services are accurate and correct, the author shall not
  188. be liable for damages arising out of the use of or inability to use this
  189. product, including but not limited to, loss of profit, data, or use of
  190. this software, or special, incidental, or consequential damages or other
  191. similar claims, even if the author has been specifically advised of the
  192. possibility of such damages. Some states do not allow the exclusion of
  193. incidental or consequential damages, so the foregoing limitation may not
  194. apply to you.
  195.  
  196.    Information on contacting the author is provided at the end of this
  197. file.
  198.  
  199.  
  200. 2. USAGE
  201. --------
  202.  
  203.    CHILS may be called with zero or more options interspersed with zero
  204. or more targets. All options are scanned before any file searching is
  205. done, so order of options and targets is unimportant.
  206.  
  207.  2.1 Targets
  208.  -----------
  209.  
  210.    A target can consist of a filename (optionally with path), a path, or
  211. a filename with wildcards (again, optionally with path). In the case of
  212. a filename, that file is processed. In the case of a path, all files in
  213. the specified directory are processed. In the case of a filename with
  214. wildcards, all files in the appropriate directory (the current directory
  215. if no path is given) matching the wildcards are processed.
  216.  
  217.    If no targets are given, all files in the current directory are
  218. processed.
  219.  
  220.    If the format of a file is recognized, various information about the
  221. file will be printed to the standard output. This output may be
  222. redirected using the MS-DOS redirection operators. If the format of a
  223. file is not recognized, no output is generated for that file unless the
  224. VERBOSE option has been specified.
  225.  
  226.   2.1.1 Wildcards
  227.   ---------------
  228.  
  229.    Wildcards are much closer to the UNIX standard than the MS-DOS
  230. standard. The characters * and ? retain their ordinary meanings but
  231. matching is much more intelligent. For example, *A.GIF will match
  232. LENNA.GIF but not CHESS.GIF, whereas under ordinary MS-DOS wildcards,
  233. *A.GIF would match both. Further, groups and ranges of characters may be
  234. specified in brackets []. For example, PIC0[1-5].GIF will match any
  235. filename starting with "PIC0", then containing any one of the characters
  236. "1", "2", "3", "4", or "5", and ending with ".GIF". PIC0[1-5A-F].GIF
  237. will match the names described before or those with the characters "A",
  238. "B", "C", "D", "E", or "F" between "PIC0" and ".GIF".
  239.  
  240.    A range or group may be complemented with the characters "^" or "!".
  241. For example, PIC0[^1-5].GIF will match any name with one character
  242. between "PIC0" and ".GIF" unless that character is "1", "2", "3", "4",
  243. or "5".
  244.  
  245.    Note that wildcards are only allowed in the filename portion, not the
  246. path portion. "\PICTURES\NEWGIF*\*.GIF" is illegal and an error message
  247. will be issued.
  248.  
  249.  2.2 Options
  250.  -----------
  251.  
  252.    CHILS has a variety of options to modify its function, including
  253. options to allow selection of specific files according to format, image
  254. size, etc. These options are described below. Options are
  255. case-insensitive ("-v" is the same as "-V") and may not be combined
  256. ("-ftGIF89a" will not have the desired effect, since only the "-f" will
  257. be recognized; "-f -tGIF89a" should be used instead).
  258.  
  259.   2.2.1 -t Type
  260.   -------------
  261.  
  262.    This option causes only files of the specified format to be
  263. processed. Multiple -t options may be specified; files of all the
  264. specified types will be processed. There must not be a space between the
  265. "-t" and the format identifier. The -v VERBOSE option, if present, is
  266. ignored. The complete list of recognized format identifiers is printed
  267. out in the usage message. Format identifiers are case insensitive. At
  268. present, the following format identifiers are recognized:
  269.  
  270.         identifier      meaning
  271.         --------------------------------
  272.         GIF87a          GIF87a files
  273.         GIF89a          GIF89a files
  274.         GIF             Any GIF file, either GIF87a or GIF89a
  275.         IMG_1           GEM IMG version 1 file
  276.         IMG             Any GEM IMG file (only version 1 known to exist)
  277.         JFIF101         JPEG File Interchange Format versions 1.00 and 1.01
  278.         JFIF            Any JFIF file (only versions 1.00 and 1.01 known
  279.                            to exist)
  280.         SUNRAS          Sun raster files
  281.         TARGA           TARGA files
  282.         PBM_NORM        Portable BitMap files, ASCII format
  283.         PBM_RAW         Portable BitMap files, raw format
  284.         PBM             Any Portable BitMap file
  285.         PGM_NORM        Portable GrayMap files, ASCII format
  286.         PGM_RAW         Portable GrayMap files, raw format
  287.         PGM             Any Portable GrayMap file
  288.         PPM_NORM        Portable PixMap files, ASCII format
  289.         PPM_RAW         Portable PixMap files, raw format
  290.         PPM             Any Portable PixMap file
  291.         XBM             X11 BitMap files
  292.         WIN2BMP         MS-Windows 2.x bitmap files
  293.         OS2BMP11        OS/2 1.1-1.3 bitmap files
  294.         WIN3BMP         MS-Windows 3.x bitmap files
  295.         OS2BMP20        OS/2 2.0 bitmap files
  296.         BMP             Any BMP file
  297.         PCX_25          PCX version 2.5 files
  298.         PCX_28          PCX version 2.8 files without palettes
  299.         PCX_28P         PCX version 2.8 files with palettes
  300.         PCX_30          PCX version 3.0 files
  301.         PCX             Any PCX file
  302.  
  303.   2.2.2 -s Complex Search
  304.   -----------------------
  305.  
  306.    This option allows specification of a complicated Boolean search
  307. pattern, including search on file format, image height, image width,
  308. number of colors in the image, and file size. Only files which meet the
  309. specified search criteria are processed. Any -t TYPE options are
  310. ignored, as is the -v VERBOSE option. There must not be a space between
  311. the "-s" and the search pattern, or within the search pattern. If there
  312. is more than one -s option specified, only the last one on the command
  313. line will have any effect. The search pattern may include the following
  314. operator characters:
  315.  
  316.         operator        meaning
  317.         --------------------------------
  318.         (               parentheses, for grouping
  319.         )
  320.  
  321.         }               greater than
  322.         }=              greater than or equal
  323.         =               equal
  324.         {               less than
  325.         {=              less than or equal
  326.  
  327.         +               Boolean AND
  328.         ,               Boolean OR
  329.  
  330. The operator characters work on the following elements:
  331.  
  332.         element         meaning
  333.         --------------------------------
  334.         H               height of image, in pixels
  335.         W               width of image, in pixels
  336.         C               number of colors in image
  337.         F               size of file, in bytes
  338.  
  339.         format identifiers as used with the TYPE option
  340.  
  341.         decimal numbers
  342.  
  343. The somewhat unusual operator character selection is to avoid
  344. conflicting with characters reserved by COMMAND.COM or other command
  345. processors, while at the same type using symbols which have some relation
  346. to their assigned meaning. For example, the traditional greater than,
  347. less than, and Boolean OR symbols ('>', '<', and '|') are all I/O
  348. redirection operators under COMMAND.COM and many other command
  349. processors; therefore they could not be used since they are parsed out
  350. by the command processor and CHILS will never see them!
  351.  
  352.    The operators and elements may be combined in various ways. Examples:
  353.  
  354.        -sW}=640
  355.            searches for images whose width is greater than or equal to
  356.            640 pixels.
  357.  
  358.        -s(W}=640+H}=480)
  359.            searches for images whose width is greater than or equal to
  360.            640 pixels AND whose height is greater than or equal to 480
  361.            pixels. The parentheses are not actually necessary.
  362.  
  363.        -s(W}=640+H}=480),(GIF+C=256),(F}500000)
  364.            searches for any image whose width is greater than or equal to
  365.            640 pixels AND whose height is greater than or equal to 480
  366.            pixels, OR any image which is of GIF format (GIF87a or GIF89a)
  367.            AND which contains 256 colors, OR any image whose file size is
  368.            greater than 500,000 bytes. The overall effect is to search
  369.            for very large images (large in pixels or bytes), or any GIF
  370.            image with lots of colors.
  371.  
  372.   2.2.3 -v Verbose
  373.   ----------------
  374.  
  375.    The -v VERBOSE option causes CHILS to print a line for every file
  376. processed, whether or not the file format was recognized. If the file
  377. format was not recognized, a message "ERROR: file ... is of unknown
  378. format" is printed, where ... is the name of the file.
  379.  
  380.   2.2.4 -f Front End
  381.   ------------------
  382.  
  383.    This option causes CHILS to simply print a list of filenames of
  384. recognized format (subject to selection criteria specified by -s and -t
  385. options) on the standard output, separated by newlines. It ignores the
  386. -v VERBOSE option. This output of this mode is intended as input for
  387. other Chiaro suite utilities which do not have the complex selection
  388. capabilities of CHILS. These utilities automatically detect redirection
  389. of their standard input and attempt to read a list of files from it.
  390.  
  391.    For example, suppose it is desired to process all GIF89a-format files
  392. in the current directory through the utility GIFSTRIP. The following
  393. command line accomplishes this:
  394.  
  395.         CHILS -f -tGIF89a | GIFSTRIP
  396.  
  397. CHILS searches all the files in the current directory and prints the
  398. names of all GIF89a-format files on its standard output (use of the -t
  399. TYPE option is explained above). The standard output of CHILS is
  400. connected to the standard input of GIFSTRIP via the MS-DOS pipe
  401. operator, '|'. GIFSTRIP detects that its standard input has been
  402. redirected (is not the keyboard) and reads the names of files to be
  403. processed from its standard input instead of taking them from the
  404. command line.
  405.  
  406.    While the output of this mode is not intended for direct human
  407. consumption, it can be useful for producing lists of filenames. To
  408. simply produce a list of all GIF89a files in the current directory, and
  409. save the list in the file LIST89A.TXT, do:
  410.  
  411.         CHILS -f -tGIF89a > LIST89A.TXT
  412.  
  413.   2.2.5 -n No Truncate
  414.   --------------------
  415.  
  416.    CHILS normally removes the path from filenames which contain one,
  417. which gives it a better chance of fitting the filename on the same line
  418. as the information about the file. However, this could lead to confusion
  419. in the case of files with the same name in different directories, so
  420. this option is provided which prevents removal of the path.
  421.  
  422.    In either case (with or without path), if the filename does not fit
  423. on the same line as the rest of the information, it is placed on the
  424. line immediately following, right-justified.
  425.  
  426.   2.2.6 -w Width
  427.   --------------
  428.  
  429.    CHILS normally determines the width of the screen in columns
  430. automatically, defaulting to 80 if the screen is less than 80 columns
  431. wide or if the number seems to large to be accurate. This option allows
  432. the user to manually set the width, in case CHILS retrieves a bad but
  433. plausible width or refuses to believe in an extra-wide screen. If no
  434. number is supplied (i.e. just "-w"), the width is set to 80; if a number
  435. is supplied (e.g. "-w160"), the width is set to that number, except that
  436. numbers less than 80 are treated as 80.
  437.  
  438.   2.2.7 -# Version
  439.   ----------------
  440.  
  441.    This option is intended more for bug reporting purposes than anything
  442. else. It causes CHILS to print the version numbers and compilation dates
  443. of its component modules. No files are processed, and all other options
  444. are ignored.
  445.  
  446.   2.2.8 -? Help
  447.   -------------
  448.  
  449.    This option, or any syntax error on the command line, causes a usage
  450. message to be displayed. No files are processed, and all other options
  451. are ignored.
  452.  
  453.  
  454. 3. CONFIGURATION FILE
  455. ---------------------
  456.  
  457.    Many image formats do not include signatures which identify them
  458. uniquely. The only way to identify these formats is by filename. Most
  459. formats have one or more filename extensions which are commonly used to
  460. identify that format. To accomodate as wide a variety of naming systems
  461. as possible, CHILS uses a configuration file which contains lists of
  462. formats and extensions which identify those formats. Extensions may also
  463. be included for those formats which have identification signatures (GIF
  464. and SUNRAS), to avoid false recognition. If extensions for those formats
  465. are included, only files with those extensions will be checked for the
  466. signature; otherwise all files will be checked.
  467.  
  468.    The configuration file must be named CHILS.CFG. CHILS searches for it
  469. first in the current directory. If there is no such file in the current
  470. directory, CHILS checks for the existence of an environment variable
  471. CHIHOME. If this variable exists, it is assumed to contain the directory
  472. in which the configuration file resides. For example, if the
  473. configuration file is C:\VIEW\CHIARO\CHILS.CFG, CHIHOME would be
  474. C:\VIEW\CHIARO. Finally, if the DOS version is 3.0 or greater, CHILS
  475. searches in the directory containing the CHILS executable. If the DOS
  476. version is below 3.0 and the configuration file is not in the current
  477. directory, CHIHOME must be set.
  478.  
  479.    This three-layer system allows local configuration files which
  480. override the main configuration file, and allows the main configuration
  481. file to be anywhere, not necessarily in the same directory as the CHILS
  482. executable. If the configuration file does not exist, a warning message
  483. is issued. Formats for which CHILS needs an extension list, but which do
  484. not have an entry in the configuration file, will not be processed.
  485.  
  486.    Blank lines in CHILS.CFG are ignored. Comments begin with '#'. The
  487. '#' must be the first non-whitespace character on the line, but it does
  488. not have to be in the first column. Both spaces and tabs are recognized
  489. as whitespace. Comments are terminated by the end of the line.
  490.  
  491.    Each format entry consists of one line. The syntax of the entry is:
  492.  
  493. format_name extension [[,] extension...]
  494.  
  495. The format name and extensions are not case sensitive. The line may
  496. contain leading whitespace, before the format name. The format name must
  497. be separated from the first extension by at least one space or tab.
  498. There must be at least one extension on the line. Additional extensions
  499. may be separated by commas and/or whitespace. The entry is terminated by
  500. the end of the line. Warnings are generated when CHILS encounters an
  501. unrecognized format name, an entry with only a format name (no extension
  502. list), an extension longer than three characters, or a zero-length
  503. extension (caused by two commas in a row, for example).
  504.  
  505.    Format identifiers presently recognized by CHILS are: GIF, IMG, JFIF,
  506. SUNRAS, TARGA, PBM, PGM, PPM, XBM, BMP, and PCX.
  507.  
  508.  
  509. 4. OUTPUT
  510. ---------
  511.  
  512.    The output generated by CHILS varies according to the format of the
  513. image, but the meaning of some columns is constant.
  514.  
  515.    GIF87A   -G   110871  381 x  480 @ 64    C~80                    ssb28c.gif
  516.    GIF89A   -G-    2657  640 x  480 @ 16    C~1   ASnone          89aillus.gif
  517.    GIF89A   -G-   62318  640 x  480 @ 16    C~40  AS49/64           grney5.gif
  518.    IMG_1    -     62630  960 x  960 @ 2     C~54  AS 85/85  P1    example1.img
  519.    JFIF101  -     18314  264 x  341, 3 @ 8  C~5   AS  1/  1           lat1.jpg
  520.    JFIF101  -     44046  976 x  768, 1 @ 8  C~7   AS  1/  1          slf1n.jpg
  521.    JFIF101  -     62139  597 x  480, 3 @ 8  C~8    72 x 72 dpi        jol1.jpg
  522.    SUNRAS   CV     4435   80 x   50 @ 256   C~90   ML=768          encoded.im8
  523.    SUNRAS   C-    32150  871 x  871 @ 2     C~33                  jupiterc.im1
  524.    SUNRAS   SV     4800   80 x   50 @ 256   ML=768                standard.sun
  525.    SUNRAS   S-     1568   16 x   32, 24 bit                      stndrd24.im24
  526.    TARGA    -UM-   4756   80 x   50 @ 246   T1  A0                   type1.tga
  527.    TARGA    -UC-   1554   16 x   32, 24 bit T2  A0                   type2.tga
  528.    TARGA    -UB-    186   24 x    7 @ 256   T3  A0                   type3.tga
  529.    PBM_RAW  R        29   24 x    7 @ 2                           feep-raw.pbm
  530.    PGM_RAW  R       180   24 x    7 @ 256   MaxVal = 255          feep-raw.pgm
  531.    PPM_RAW  R        59    4 x    4, 24 bit MaxVal = 255          feep-raw.ppm
  532.    PBM_NORM N       355   24 x    7 @ 2                               feep.pbm
  533.    PGM_NORM N       519   24 x    7 @ 16    MaxVal =  15              feep.pgm
  534.    PPM_NORM N       189    4 x    4 @ 4096  MaxVal =  15              feep.ppm
  535.    XBM              182   24 x    7 @ 2     'feep'                    feep.xbm
  536.    WIN3BMP  --     5078   80 x   50 @ 256                         256color.bmp
  537.    WIN3BMP  --      630   32 x   32 @ 16                            argyle.bmp
  538.    PCX_30   RC     4715   80 x   50 @ 256   C~114  CX 80,CY 50       color.pcx
  539.    PCX_30   RC      191   24 x    7 @ 8     C~100  CX 24,CY  7    feepgray.pcx
  540.    PCX_30   RC      152   24 x    7 @ 2     C~114  CX 24,CY  7    feepmono.pcx
  541.  
  542. The first column is always the format (see the list under the -t option
  543. above). The second column, if present, is a group of flags whose meaning
  544. varies according to the image (see below). The third column is the
  545. filesize. Next is the width and the height of the image (or a reasonable
  546. approximation) in pixels, then the number of colors in the image in a
  547. format which depends on the image. After that is miscellaneous
  548. format-dependent information; frequently a compression ratio is given,
  549. indicated by "C~". The last column is always the filename. If the
  550. filename is too long to fit on the line, it is put on the line
  551. immediately following, right justified.
  552.  
  553.  4.1 GIF87a
  554.  ----------
  555.  
  556.    GIF87A   EG    53882  398 x  548 @ 16    C~49                      bar4.gif
  557.    GIF87A   -G   110871  381 x  480 @ 64    C~80                    ssb28c.gif
  558.    GIF87A   --    59392  320 x  240 @ ---   C~--                        tt.gif
  559.  
  560.    The GIF87A format has two flags. The first is "E" if extra characters
  561. are detected on the end of the file, or "-" if not. The second is "G" if
  562. the file contains a global color table, or "-" if not. Note that the "E"
  563. flag is only a quick and dirty check for extra characters on the end of
  564. the file. If the last character of the file is the GIF Terminator, "-"
  565. is displayed; if it is not, "E" is displayed. This check will be fooled
  566. if the file contains extra characters which happen to end with the GIF
  567. Terminator character. GIFSTRIP and GIFCHECK offer reliable detection of
  568. extra characters (and, in the case of GIFSTRIP, removal thereof).
  569.  
  570.    The width and height displayed are for the logical screen, not the
  571. actual image. Typically the image or images in the file will be the same
  572. size as the logical screen, but this is not required. Unfortunately, it
  573. is not possible to extract the size of the actual image or images
  574. without parsing much of the file, which is beyond the scope of CHILS.
  575.  
  576.    The number of colors shown is the size of the global color table, or
  577. "---" if there is no global color table. Images typically do not use all
  578. the colors in the global color table; the number should be regarded as
  579. an upper limit on the colors in the actual image rather than the actual
  580. figure. GIFCHECK can determine the number of unique colors actually
  581. used.
  582.  
  583.    The only format-dependent display is the compression ratio. "--" is
  584. displayed if no global color table is present, since the calculation
  585. relies on the size of that table. The compression ratio is calculated by
  586. multiplying the height by the width, then multiplying that result by the
  587. number of bits required to represent the colors in the image (based on
  588. the size of the global color table), and dividing by 8 to obtain the
  589. number of bytes which the image data would occupy when uncompressed.
  590. Finally, the present file size is divided by the computed uncompressed
  591. size, which yields the size of the compressed image as a percentage of
  592. the uncompressed size. Note that the value displayed may be radically
  593. incorrect if the file contains multiple images, if the file contains
  594. extension blocks, if the image uses a local color table, if the image is
  595. smaller than the logical screen size, or if there are very many extra
  596. characters on the end of the file.
  597.  
  598.    In the first example, the format is GIF87a. There were extra
  599. characters detected, and the file contains a global color table. The
  600. logical screen is 398 pixels wide by 548 pixels high. The global color
  601. table contains 16 colors. The file is 53882 bytes long. (((398 * 548) *
  602. 4) / 8) = 109052; (53882 / 109052) = 0.49, so the file is 49% of the
  603. size of the uncompressed image, in theory.  The filename is "bar4.gif".
  604.  
  605.    In the second example, the format is GIF87a. No extra characters were
  606. detected on the end of the file, and the file contains a global color
  607. table. The logical screen is 381 pixels wide by 480 pixels high. The
  608. global color table contains 64 colors. The file is 110871 bytes long.
  609. (((381 * 480) * 6) / 8) = 137160. (110871 / 137160) = 0.80, so the file
  610. is 80% of the size of the uncompressed image, in theory.  The filename
  611. is "ssb28c.gif".
  612.  
  613.    In the third example, the format is GIF87a. There were no extra
  614. characters detected. The file does not contain a global color table. The
  615. file is 59392 bytes long. The logical screen is 320 pixels wide by 240
  616. pixels high. Since there is no global color table, the number of colors
  617. in the global color table is undefined and "---" is displayed. Since
  618. there is no global color table, the compression ratio cannot be
  619. calculated and "--" is displayed.  The filename is "tt.gif".
  620.  
  621.  4.2 GIF89a
  622.  ----------
  623.  
  624.    GIF89A   -G-    2657  640 x  480 @ 16    C~1   ASnone          89aillus.gif
  625.    GIF89A   -G-   62318  640 x  480 @ 16    C~40  AS49/64           grney5.gif
  626.  
  627.    The GIF89A format has three flags. The first is "E" if extra
  628. characters are detected on the end of the file, or "-" if not. The
  629. second is "G" if the file contains a global color table, or "-" if not.
  630. The third is "S" if the global color table is sorted in order of
  631. decreasing importance, or "-" if not. Note that the "E" flag is only a
  632. quick and dirty check for extra characters on the end of the file. If
  633. the last character of the file is the GIF Terminator, "-" is displayed;
  634. if it is not, "E" is displayed. This check will be fooled if the file
  635. contains extra characters which happen to end with the GIF Terminator
  636. character. GIFSTRIP and GIFCHECK offer reliable detection of extra
  637. characters (and, in the case of GIFSTRIP, removal thereof).
  638.  
  639.    The width and height displayed are for the logical screen, not the
  640. actual image. Typically the image or images in the file will be the same
  641. size as the logical screen, but this is not required. Unfortunately, it
  642. is not possible to extract the size of the actual image or images
  643. without parsing much of the file, which is beyond the scope of CHILS.
  644.  
  645.    The number of colors shown is the size of the global color table, or
  646. "---" if there is no global color table. Images typically do not use all
  647. the colors in the global color table; the number should be regarded as
  648. an upper limit on the number of colors in the actual image rather than
  649. the actual figure. GIFCHECK can determine the number of unique colors
  650. actually used.
  651.  
  652.    Format-dependent displays for GIF89a are the compression ratio and
  653. aspect ratio, in that order.
  654.  
  655.    If no global color table is present, "--" is displayed for the
  656. compression ratio, since the calculation relies on the size of that
  657. table. The compression ratio is calculated by multiplying the height by
  658. the width, then multiplying that result by the number of bits required
  659. to represent the colors in the image (based on the size of the global
  660. color table), and dividing by 8 to obtain the number of bytes which the
  661. image data would occupy when uncompressed. Finally, the present file
  662. size is divided by the computed uncompressed size, which yields the size
  663. of the compressed image as a percentage of the uncompressed size. Note
  664. that the value displayed may be radically incorrect if the file contains
  665. multiple images, if the file contains extension blocks, if the image
  666. uses a local color table, if the image is smaller than the logical
  667. screen size, or if there are very many extra characters on the end of
  668. the file.
  669.  
  670.    The aspect ratio is given in 64ths. If there is no aspect ratio,
  671. "none" is displayed.
  672.  
  673.    In the first example, the format is GIF89a. There were no extra
  674. characters detected, the file contains a global color table, and the
  675. global color table is not sorted. The file is 2657 bytes long. The
  676. logical screen is 640 pixels wide by 480 pixels high. The global color
  677. table contains 16 colors. (((640 * 480) * 4) / 8) = 153600; (2657 /
  678. 153600) = 0.01, so the file is 1% of the size of the uncompressed image,
  679. in theory. No aspect ratio is given.  The filename is "89aillus.gif".
  680.  
  681.    This is an example of a file where the compression ratio is
  682. misleading. This file is actually a demonstration of the GIF89a format's
  683. text extension capabilities, and does not contain an image as such. Most
  684. of the file is occupied by the global color table.
  685.  
  686.    In the second example, the format is GIF89a. There were no extra
  687. characters detected, the file contains a global color table, and the
  688. global color table is not sorted. The file is 62318 bytes long. The
  689. logical screen is 640 pixels wide by 480 pixels high. The global color
  690. table contains 16 colors. (((640 * 480) * 4) / 8) = 153600; (62318 /
  691. 153600) = 0.40, so the file is 40% of the size of the uncompressed
  692. image, in theory. The aspect ratio is 49:64. The filename is
  693. "grney5.gif".
  694.  
  695.  4.3 IMG_1
  696.  ---------
  697.  
  698.    IMG_1    -     62630  960 x  960 @ 2     C~54  AS 85/85  P1    example1.img
  699.  
  700.    Note that there are many file formats named "IMG", a situation which
  701. is confusing at best. CHILS recognizes only the GEM IMG format.
  702.  
  703.    The IMG_1 format has one flag. It is "L" if the IMG header is
  704. extended (to contain a palette, for example), or "-" if the header is of
  705. normal length.
  706.  
  707.    The maximum number of colors in the file is calculated from the
  708. number of bit planes; the actual number of colors used may be less than
  709. the number shown.
  710.  
  711.    Format-dependent displays for IMG_1 are the compression ratio, aspect
  712. ratio, and pattern length, in that order.
  713.  
  714.    The compression ratio is computed by multiplying the height by the
  715. width, then multiplying that result by the number of bit planes, and
  716. dividing by 8 to obtain the number of bytes which the image data would
  717. occupy when uncompressed. Finally, the present file size minus the
  718. header length is divided by the computed uncompressed size, which yields
  719. the size of the compressed image as a percentage of the uncompressed
  720. size. The compression ratio is reasonably accurate. Since the header
  721. length is known accurately, that number is subtracted from the filesize
  722. to get a more accurate compressed size. The compression ratio will only
  723. be incorrect if there are junk characters on the end of the file.
  724.  
  725.    The aspect ratio is always present. The numbers also represent the
  726. width and height, respectively, of a pixel, in microns. 85 microns is
  727. approximately equivalent to 300 pixels per inch.
  728.  
  729.    The pattern length in pixels is used when decompressing the image.
  730.  
  731.    In the example, the format is IMG version 1. The header is of
  732. standard length. The file is 62630 bytes long. The image is 960 pixels
  733. wide by 960 pixels high. The file may contain up to 2 colors. (((960 *
  734. 960) * 1) / 8) = 115200; ((62630 - 16) / 115200) = 0.54, so the file is
  735. 54% of the size of the uncompressed image. The pixels are 85 microns
  736. wide by 85 microns high, which means the aspect ratio is 85:85. The
  737. pattern length is 1.  The filename is "example1.img".
  738.  
  739.  4.4 JFIF1.01
  740.  ------------
  741.  
  742.    JFIF101  -     18314  264 x  341, 3 @ 8  C~6   AS  1/  1           lat1.jpg
  743.    JFIF101  -     44046  976 x  768, 1 @ 8  C~7   AS  1/  1          slf1n.jpg
  744.    JFIF101  -     62139  597 x  480, 3 @ 8  C~8    72 x 72 dpi        jol1.jpg
  745.  
  746.    The JFIF 1.0 and 1.01 formats differ minimally; CHILS treats them as
  747. identical.
  748.  
  749.    The JFIF101 format has one flag. It is "T" if a thumbnail image is
  750. present in the file, or "-" if not.
  751.  
  752.    The number of colors is expressed as the number of "components"
  753. (usually 3 or 1) by the number of bits per component (usually 8). Images
  754. with three components are full-color, while images with one are, by
  755. convention, grayscale.
  756.  
  757.    Format-dependent displays for JFIF101 are the compression ratio and
  758. aspect ratio or pixel density, in that order.
  759.  
  760.    The compression ratio is computed by multiplying the height by the
  761. width, then multiplying that result by the number of components times
  762. the bits per component, and dividing by 8 to obtain the number of bytes
  763. which the image data would occupy when uncompressed. Finally, the
  764. present file size is divided by the computed uncompressed size, which
  765. yields the size of the compressed image as a percentage of the
  766. uncompressed size. Note that the image itself is actually compressed
  767. even more than shown, since the present file size includes all the
  768. headers and other, non-image information present in the file.
  769.  
  770.    JFIF101 files contain either an aspect ratio or a pixel density. If
  771. an aspect ratio is present, it is expressed as a fraction. If pixel
  772. density is present instead, it is displayed as the horizontal density by
  773. the vertical density followed by the units, which are either "dpi"
  774. (pixels/dots per inch) or "dpcm" (pixels/dots per centimeter).
  775.  
  776.    In the first example, the format is JFIF version 1.0/1.01. There is
  777. no thumbnail image. The file is 18314 bytes long. The image is 264
  778. pixels wide by 341 pixels high. The image has three components per
  779. pixel, and each component has eight bits. (((264 * 341) * (3 * 8)) / 8)
  780. = 270072. (18314 / 270072) = 0.06, so the file is 6% of the size of the
  781. uncompressed image. This image has an aspect ratio instead of pixel
  782. density information; the aspect ratio is 1:1. The filename is
  783. "lat1.jpg".
  784.  
  785.    In the second example, the format is JFIF version 1.0/1.01. There is
  786. no thumbnail image. The file is 44046 bytes long. The image is 976
  787. pixels wide by 768 pixels high. The image has one component per pixel,
  788. and the component has eight bits. (((976 * 768) * (1 * 8)) / 8) =
  789. 749568. (44046 / 749568) = 0.05, so the file is 5% of the size of the
  790. uncompressed image. This image has an aspect ratio instead of pixel
  791. density information; the aspect ratio is 1:1. The filename is
  792. "slf1n.jpg".
  793.  
  794.    In the third example, the format is JFIF version 1.0/1.01. There is
  795. no thumbnail image. The file is 62139 bytes long. The image is 597
  796. pixels wide by 480 pixels high. The image has three components per
  797. pixel, and each component has eight bits. (((597 * 480) * (3 * 8)) / 8)
  798. = 859680. (62139 / 859680) = 0.07, so the file is 7% of the size of the
  799. uncompressed image. This image has pixel density information instead of
  800. an aspect ratio; the pixel density is 72 pixels per inch horizontally
  801. and 72 pixels per inch vertically.
  802.  
  803.  4.5 SUNRAS
  804.  ----------
  805.  
  806.    SUNRAS   CV     4435   80 x   50 @ 256   C~90   ML=768          encoded.im8
  807.    SUNRAS   C-    32150  871 x  871 @ 2     C~33                  jupiterc.im1
  808.    SUNRAS   SV     4800   80 x   50 @ 256   ML=768                standard.sun
  809.    SUNRAS   S-     1568   16 x   32, 24 bit                       stndrd24.sun
  810.  
  811.    Sun Raster files are a format developed by Sun Microsystems for use
  812. on their workstations.
  813.  
  814.    The SUNRAS format has two flags. The first is "O" for 'old' format
  815. files (left over from ancient versions of SunOS), "S" for standard
  816. files, "C" for compressed files, "R" for 24-bit files with reversed
  817. color-component order, "T" for "tiff <-> standard rasterfile" (don't ask
  818. me), "I" for "iff (TAAC format) <-> standard rasterfile" (again, don't
  819. ask me), and "E" for 'experimental' formats. The second flag is "-" if
  820. the file does not have a colormap, "V" if the colormap is in 'vector'
  821. format (all red components grouped together, all green components
  822. grouped together in the same order, etc.), or "R" if the colormap is in
  823. 'raw' format (usually RGB triples).
  824.  
  825.    The number of colors is expressed either as a number or as the number
  826. of bits per pixel, depending on which fits in the available space. In
  827. the case of a plain number, not all colors may be used; the number
  828. should be regarded as an upper limit on the number of colors in the
  829. actual image rather than the actual figure.
  830.  
  831.    Format-dependent displays for SUNRAS are the compression ratio (if a
  832. compressed format) and the length of the colormap in bytes (if a
  833. colormap is present), in that order.
  834.  
  835.    The compression ratio is computed by multiplying the height by the
  836. width, then multiplying that result by the number of bits per pixel, and
  837. dividing by 8 to obtain the number of bytes which the image data would
  838. occupy when uncompressed. Finally, the size of the compressed data
  839. (maintained in the file  header) is divided by the computed uncompressed
  840. size, which yields the size of the compressed image as  a percentage of
  841. the uncompressed size. The compression ratio is accurate unless the file
  842. is corrupted.
  843.  
  844.    If a colormap is present, the length in bytes is displayed as
  845. "ML=nnn".
  846.  
  847.    In the first example, the format is Sun Raster. The image is
  848. compressed and has a vector-style colormap. The file is 4435 bytes long.
  849. The image is 80 pixels wide by 50 pixels high. The colormap has 256
  850. entries. The compressed image data is 90% of the size of the
  851. uncompressed data. The colormap is 768 bytes long. The filename is
  852. "encoded.im8".
  853.  
  854.    In the second example, the format is Sun Raster. The image is
  855. compressed and does not have a colormap. The file is 32150 bytes long.
  856. The image is 871 pixels wide by 871 pixels high. The image has one bit
  857. of color information per pixel, so the number of colors is displayed as
  858. 2. The compressed image data is 33% of the size of the uncompressed
  859. data. The filename is "jupiterc.im1".
  860.  
  861.    In the third example, the format is Sun Raster. The image is the
  862. standard (uncompressed) type and has a vector-style colormap. The file
  863. is 4800 bytes long. The image is 80 pixels wide by 50 pixels high. The
  864. colomap has 256 entries. The colormap is 768 bytes long. The filename is
  865. "standard.sun".
  866.  
  867.    In the fourth example, the format is Sun Raster. The image is the
  868. standard (uncompressed) type and does not have a colormap. The file is
  869. 1568 bytes long. The image is 16 pixels wide by 32 pixels high. The
  870. image has 24 bits of color information per pixel. The filename is
  871. "stndrd24.sun".
  872.  
  873.  4.6 TARGA
  874.  ---------
  875.  
  876.    TARGA    -UM-   4756   80 x   50 @ 246   T1  A0                   type1.tga
  877.    TARGA    -UC-   1554   16 x   32, 24 bit T2  A0                   type2.tga
  878.    TARGA    -UB-    186   24 x    7 @ 256   T3  A0                   type3.tga
  879.  
  880.    The Targa format was developed by AT&T in conjunction with their
  881. TrueVision graphics hardware.
  882.  
  883.    The TARGA format has four flags. The first is "-" if the file
  884. contains an image or "N" if not. The second is "-" for no image, "U" for
  885. an uncompressed image, "R" for a runlength-encoded image, or "C" for an
  886. LZW-compressed image. The third is "-" for no image, "M" for a
  887. colormapped image, "B" for a grayscale image, or "C" for a full-color
  888. image. The fourth flag indicates the scan-line interleave of the image:
  889. "-" for noninterleaved, "2" or "4" for two- or four- way interleaving,
  890. or "R" for a reserved value.
  891.  
  892.    The number of colors is expressed either as a number or as the number
  893. of bits per pixel. If the image is colormapped, the length of the
  894. colormap is displayed. If the image is not colormapped (either grayscale
  895. or full-color), either a number or the number of bits is displayed
  896. depending on which fits in the available space. In the case of a plain
  897. number, not all colors may be used; the number should be regarded as an
  898. upper limit on the number of colors in the actual image rather than the
  899. actual figure.
  900.  
  901.    Format-dependent displays for TARGA are the compression ratio (if a
  902. runlength-encoded or LZW-compressed format), the format type "Tn", the
  903. number of attribute bits per pixel "An", "M" if an unnecessary colormap
  904. is included in the file, and "I" if the file has an ID field.
  905.  
  906.    The compression ratio is computed by multiplying the height by the
  907. width, then multiplying that result by the number of bits per pixel, and
  908. dividing by 8 to obtain the number  of bytes which the image data would
  909. occupy when uncompressed. Finally, the present file size minus the
  910. header, ID field, and colormap lengths is divided by the computed
  911. uncompressed size, which yields the size of the compressed image as a
  912. percentage of the uncompressed size. The compression ratio should be
  913. accurate unless the file is corrupted or there are junk characters on
  914. the end of the file.
  915.  
  916.    In the first example, the format is Targa. The file contains an
  917. image, which is uncompressed, uses a colormap, and is noninterleaved.
  918. The file is 4756 bytes long. The image is 80 pixels wide by 50 pixels
  919. high. The colormap contains 246 colors. The format type is 1. There are
  920. 0 attribute bits per pixel. The filename is "type1.tga".
  921.  
  922.    In the second example, the format is Targa. The file contains an
  923. image, which is uncompressed, is full-color, and is noninterleaved. The
  924. file is 1554 bytes long. The image is 16 pixels wide by 32 pixels high.
  925. The image contains 24 bits of color information per pixel. The format
  926. type is 1. There are 0 attribute bits per pixel. The filename is
  927. "type2.tga".
  928.  
  929.    In the third example, the format is Targa. The file contains an
  930. image, which is uncompressed, is grayscale, and is noninterleaved. The
  931. file is 186 bytes long. The image is 24 pixels wide by 7 pixels high.
  932. The image contains 8 bits of color information per pixel, so the number
  933. of colors is displayed as 256. The format type is 3. There are 0
  934. attribute bits per pixel. The filename is "type3.tga".
  935.  
  936.  4.7 PBM, PGM, PPM, PBM_RAW, PGM_RAW, PPM_RAW
  937.  --------------------------------------------
  938.  
  939.    PBM_RAW  R        29   24 x    7 @ 2                           feep-raw.pbm
  940.    PGM_RAW  R       180   24 x    7 @ 256   MaxVal = 255          feep-raw.pgm
  941.    PPM_RAW  R        59    4 x    4, 24 bit MaxVal = 255          feep-raw.ppm
  942.    PBM_NORM N       355   24 x    7 @ 2                               feep.pbm
  943.    PGM_NORM N       519   24 x    7 @ 16    MaxVal =  15              feep.pgm
  944.    PPM_NORM N       189    4 x    4 @ 4096  MaxVal =  15              feep.ppm
  945.  
  946.    These formats were developed by Jef Poskanzer for his Portable Bitmap
  947. (later Portable Bitmap Plus) package. The formats were designed to be
  948. easily transferable between machines and easily usable on widely
  949. differing machines. There are three basic types, PBM (Portable BitMap,
  950. black and white only), PGM (Portable GrayMap, grayscale), and PPM
  951. (Portable PixMap, full-color), each of which comes in two varieties,
  952. normal (all data is represented as ASCII text) and raw (the image data
  953. itself is stored as packed bytes.) CHILS handles all six permutations.
  954.  
  955.    These formats have only one flag, which is "R" for a raw file and "N"
  956. for a normal file, and is redundant.
  957.  
  958.    The number of colors is expressed either as a number or as the number
  959. of bits per pixel. For PBM and PGM images, it is always a number (always
  960. 2 for PBM). For PPM images, it is either a number or the number of bits
  961. depending on which fits in the available space. In the case of a plain
  962. number, not all colors may be used; the number should be regarded as an
  963. upper limit on the number of colors in the actual image rather than the
  964. actual figure.
  965.  
  966.    There are no format-dependent displays for PBM; PGM and PPM display
  967. the maximum value that a pixel may take (usually a power of 2 minus 1).
  968.  
  969.    In the first example, the format is Raw PBM. The file is 29 bytes
  970. long. The image is 24 pixels wide by 7 high. The image uses up to 2
  971. colors. The filename is "feep-raw.pbm".
  972.  
  973.    In the second example, the format is Raw PGM. The file is 180 bytes
  974. long. The image is 24 pixels wide by 7 high. The image uses up to 256
  975. colors. The maximum value for a pixel is 255. The filename is
  976. "feep-raw.pgm".
  977.  
  978.    In the third example, the format is Raw PPM. The file is 59 bytes
  979. long. The image is 4 pixels wide by 4 high. The image contains 24 bits
  980. of color information per pixel. The maximum value for any of the three
  981. color components is 255. The filename is "feep-raw.ppm".
  982.  
  983.    In the fourth example, the format is Normal PBM. The file is 355
  984. bytes long. The image is 24 pixels wide by 7 high. The image uses up to
  985. 2 colors. The filename is "feep.pbm".
  986.  
  987.    In the fifth example, the format is Normal PGM. The file is 519 bytes
  988. long. The image is 24 pixels wide by 7 high. The image uses up to 16
  989. colors. The maximum value for a pixel is 15. The filename is "feep.pgm".
  990.  
  991.    In the sixth example, the format is Normal PPM. The file is 189 bytes
  992. long. The image is 4 pixels wide by 4 high. The image uses up to 4096
  993. colors. The maximum value for any of the three color components is 15.
  994. The filename is "feep.ppm".
  995.  
  996.  4.8 XBM
  997.  -------
  998.  
  999.    XBM              182   24 x    7 @ 2     'feep'                    feep.xbm
  1000.  
  1001.    The XBM (X BitMap) format is used by the X Window system developed at
  1002. MIT. The format is designed for easy incorporation into C-language
  1003. programs and all data is represented as ASCII text.
  1004.  
  1005.    The XBM format has no flags.
  1006.  
  1007.    The number of colors is always 2, black and white.
  1008.  
  1009.    Format-dependent displays for XBM are the name of the image, which is
  1010. encoded into the file.
  1011.  
  1012.    In the example, the format is XBM. The file is 182 bytes long. The
  1013. image is 24 pixels wide by 7 high. The image uses up to 2 colors. The
  1014. name of the image is feep. The filename is "feep.xbm".
  1015.  
  1016.  4.9 WIN2BMP
  1017.  -----------
  1018.  
  1019.    WIN2BMP  -       630   32 x   32 @ 16                              argh.bmp
  1020.  
  1021.    The WIN2BMP format is an obsolete format used by MS-Windows 2.x.
  1022.  
  1023.    The WIN2BMP format has one flag, which is "D" if the bitmap resource
  1024. is discardable or "-" if it is not.
  1025.  
  1026.    The number of colors is expressed either as a number or as the number
  1027. of bits per pixel, depending on which fits in the available space. In
  1028. the case of a plain number, not all colors may be used; the number
  1029. should be regarded as an upper limit on the number of colors in the
  1030. actual image rather than the actual figure.
  1031.  
  1032.    There are no format-dependent displays for WIN2BMP.
  1033.  
  1034.    In the example, the format is MS-Windows 2.x BitMaP. The bitmap
  1035. resource is not discardable. The file is 630 bytes long. The image is 32
  1036. pixels wide by 32 high. The image uses up to 16 colors. The filename is
  1037. "argh.bmp".
  1038.  
  1039.  4.10 OS2BMP11
  1040.  -------------
  1041.  
  1042.    OS2BMP11 -      5078   80 x   50 @ 256                         256color.bmp
  1043.  
  1044.    The OS2BMP11 format is used by OS/2 1.1-1.3. The WIN3BMP and OS2BMP20
  1045. formats are loosely based on it.
  1046.  
  1047.    The OS2BMP11 format has one flag, which is "E" if the file size in
  1048. the header does not match the present file size or "-" if it does.
  1049.  
  1050.    The number of colors is expressed either as a number or as the number
  1051. of bits per pixel, depending on which fits in the available space. In
  1052. the case of a plain number, not all colors may be used; the number
  1053. should be regarded as an upper limit on the number of colors in the
  1054. actual image rather than the actual figure.
  1055.  
  1056.    There are no format-dependent displays for OS2BMP11.
  1057.  
  1058.    In the example, the format is OS/2 1.1 BitMaP. The file size in the
  1059. header matches the present file size. The file is 5078 bytes long. The
  1060. image is 80 pixels wide by 50 high. The image uses up to 256 colors. The
  1061. filename is "256color.bmp".
  1062.  
  1063.  4.11 WIN3BMP
  1064.  ------------
  1065.  
  1066.    WIN3BMP  --     5078   80 x   50 @ 256                         256color.bmp
  1067.    WIN3BMP  --      630   32 x   32 @ 16                            argyle.bmp
  1068.  
  1069.    The WIN3BMP format is used by MS-Windows 3.x. It is loosely based on
  1070. the OS2BMP11 format and the OS2BMP20 format is based on it.
  1071.  
  1072.    The WIN3BMP format has two flags. The first one is "E" if the file
  1073. size in the header does not match the present file size or "-" if it
  1074. does. The second one is "-" for an uncompressed file, "4" if 4-bit
  1075. run-length compression is used, or "8" if 8-bit run-length compression
  1076. is used.
  1077.  
  1078.    The number of colors is expressed either as a number or as the number
  1079. of bits per pixel, depending on which fits in the available space. In
  1080. the case of a plain number, not all colors may be used; the number
  1081. should be regarded as an upper limit on the number of colors in the
  1082. actual image rather than the actual figure.
  1083.  
  1084.    Format-dependent displays for WIN3BMP are the compression ratio (for
  1085. compressed files), the horizontal and vertical resolution (if present)
  1086. and the number of important colors (if present and different from the
  1087. number of colors in the colormap) "Innn".
  1088.  
  1089.    The compression ratio is computed by multiplying the height by the
  1090. width, then multiplying that result by the number of bits per pixel, and
  1091. dividing by 8 to obtain  the number of bytes which the image data would
  1092. occupy when uncompressed. Finally, the size of the compressed data
  1093. (maintained in the file header) is divided by the computed uncompressed
  1094. size, which yields the size of the compressed image as a percentage of
  1095. the uncompressed size. The compression ratio is accurate unless the file
  1096. is corrupted.
  1097.  
  1098.    The horizontal and vertical resolution are in pixels per meter,
  1099. displayed as "Xnnn,Ynnn".
  1100.  
  1101.    In the first example, the format is MS-Windows 3.x BitMaP. The file
  1102. size in the header matches the present file size, and the image is
  1103. uncompressed. The file is 5078 bytes long. The image is 80 pixels wide
  1104. by 50 high. The image uses up to 256 colors. The filename is
  1105. "256color.bmp".
  1106.  
  1107.    In the second example, the format is MS-Windows 3.x BitMaP. The file
  1108. size in the header matches the present file size, and the image is
  1109. uncompressed. The image is 630 bytes long. The image is 32 pixels wide
  1110. by 32 high. The image uses up to 16 colors. The filename is
  1111. "argyle.bmp".
  1112.  
  1113.  4.12 OS2BMP20
  1114.  -------------
  1115.  
  1116.    OS2BMP20 --R-   5078   80 x   50 @ 256                         256color.bmp
  1117.  
  1118.    The OS2BMP20 format is used by OS/2 2.0. It is an extension of the
  1119. WIN3BMP format.
  1120.  
  1121.    The OS2BMP20 format has four flags. The first one is "E" if the file
  1122. size in the header does not match the present file size or "-" if it
  1123. does. The second one is "-" for an uncompressed file or "C" for a
  1124. compressed file. The third one relates to the colormap format and should
  1125. always be "R". The fourth one is "H" if a halftoning algorithm is
  1126. specified, "-" otherwise.
  1127.  
  1128.    The number of colors is expressed either as a number or as the number
  1129. of bits per pixel, depending on which fits in the available space. In
  1130. the case of a plain number, not all colors may be used; the number
  1131. should be regarded as an upper limit on the number of colors in the
  1132. actual image rather than the actual figure.
  1133.  
  1134.    Format-dependent displays for OS2BMP20 are the compression ratio (for
  1135. compressed files), the horizontal and vertical resolution (if present)
  1136. and the number of important colors (if present and different from the
  1137. number of colors in the colormap) "Innn".
  1138.  
  1139.    The compression ratio is computed by multiplying the height by the
  1140. width, then multiplying that result by the number of bits per pixel, and
  1141. dividing by 8 to obtain the number of bytes which the image data would
  1142. occupy when uncompressed. Finally, the size of the compressed data
  1143. (maintained in the file header) is divided by the computed uncompressed
  1144. size, which yields the size of the compressed image as a percentage of
  1145. the uncompressed size. The compression ratio is accurate unless the file
  1146. is corrupted.
  1147.  
  1148.    The horizontal and vertical resolution are displayed as "Xnnn,Ynnn
  1149. dp?", where '?' should always be 'm' (for dots per meter).
  1150.  
  1151.    In the example, the format is OS/2 2.0 BitMaP. The file size in the
  1152. header matches the present file size, the image is uncompressed, the
  1153. colormap format is correct, and no halftoning algorthm is given. The
  1154. file is 5078 bytes long. The image is 80 pixels wide by 50 high. The
  1155. image uses up to 256 colors. The filename is "256color.bmp".
  1156.  
  1157.  4.13 PCX
  1158.  --------
  1159.  
  1160.    PCX_30   RC     4715   80 x   50 @ 256   C~114  CX 80,CY 50       color.pcx
  1161.    PCX_30   RC      191   24 x    7 @ 8     C~100  CX 24,CY  7    feepgray.pcx
  1162.    PCX_30   RC      152   24 x    7 @ 2     C~114  CX 24,CY  7    feepmono.pcx
  1163.  
  1164.    The PCX format was created by the ZSoft Corporation. CHILS recognizes
  1165. PCX_25 (version 2.5), PCX_28 (version 2.8 without palette), PCX_28P
  1166. (version 2.8 with palette), and PCX_30 (version 3.0).
  1167.  
  1168.    The PCX format has two flags. The first one should always be "R",
  1169. indicating that the file is run-length encoded. The second one is "G" if
  1170. the palette should be interpreted as grayscale or "C" if it should be
  1171. interpreted as color.
  1172.  
  1173.    The number of colors is expressed either as a number or as the number
  1174. of bits per pixel, depending on which fits in the available space. In
  1175. the case of a plain number, not all colors may be used; the number
  1176. should be regarded as an upper limit on the number of colors in the
  1177. actual image rather than the actual figure.
  1178.  
  1179.    Format-dependent displays for PCX are the compression ratio and the
  1180. horizontal and vertical resolution of the file creator, in that order.
  1181.  
  1182.    The compression ratio is computed by multiplying the height by the
  1183. width, then multiplying that result by the number of bits per pixel, and
  1184. dividing by 8 to obtain the number of bytes which the image data would
  1185. occupy when uncompressed. Finally, the present file size minus the
  1186. length of the PCX header is divided by the computed uncompressed size,
  1187. which yields the size of the compressed image as a percentage of the
  1188. uncompressed size. The compression ratio should be accurate unless the
  1189. file has extra characters (such as a 256-color palette) on the end.
  1190.  
  1191.    The horizontal and vertical resolution are displayed as
  1192. "CXnnn,CYnnn". Unfortunately, it is not clear what these values mean.
  1193.  
  1194.    In the first example, the format is PCX 3.0. The image is run-length
  1195. encoded as expected, and the colormap is color. The file is 4715 bytes
  1196. long. The image is 80 pixels wide by 50 high. The image uses up to 256
  1197. colors. (((80 * 50) * 8) / 8) = 4000. ((4715 - 128) / 4000) = 1.14, so
  1198. the compressed image is 114% of the size of the uncompressed image, in
  1199. theory. The horizontal and vertical resolution of the creator are 80 and
  1200. 50, respectively. The filename is "color.pcx".
  1201.  
  1202.     In the second example, the format is PCX 3.0. The image is
  1203. run-length encoded as expected, and the colormap is color. The file is
  1204. 191 bytes long. The image is 24 pixels wide by 7 high. The image uses up
  1205. to 8 colors. (((24 * 7) * 3) / 8) = 63. ((191 - 128) / 63) = 1.00, so
  1206. the compressed image is 100% of the size of the uncompressed image, in
  1207. theory. The horizontal and vertical resolution of the creator are 24 and
  1208. 7, respectively. The filename is "feepgray.pcx".
  1209.  
  1210.    In the third example, the format is PCX 3.0. The image is run-length
  1211. encoded as expected, and the colormap is color. The file is 152 bytes
  1212. long. The image is 24 pixels wide by 7 high. The image uses up to 2
  1213. colors. (((24 * 7) * 1) / 8) = 21. ((152 - 128) / 21) = 1.14, so the
  1214. compressed image is 114% of the size of the uncompressed image, in
  1215. theory. The horizontal and vertical resolution of hte creator are 24 and
  1216. 7, respectively. The filename is "feepmono.pcx".
  1217.  
  1218. 5. THE END
  1219. ----------
  1220.  
  1221.    Technical support via email is available from the following addresses:
  1222.  
  1223.    INTERNET (the following are alternate addresses for the same place):
  1224.       support@picarefy.com
  1225.       picarefy!support@amc.com
  1226.       picarefy!support@netcom.com
  1227.       uunet!uw-coco!amc-gw!picarefy!support
  1228.  
  1229.    COMPUSERVE:
  1230.       71261,1731
  1231.  
  1232.    GENIE:
  1233.       J.BIRDSALL2
  1234.  
  1235.    Registrations should be sent to:
  1236.  
  1237.       James W. Birdsall
  1238.       11112 NE 124 LN #D204
  1239.       Kirkland, WA 98034
  1240.  
  1241.    If you have an email address on any of the networks listed above,
  1242. please include it when registering. It is much easier to send updates by
  1243. email. Also, please specify what sort of archive (ZIP, ZOO, ARC, LZH,
  1244. ARJ, UNIX shar) you can handle most easily.
  1245.  
  1246.    NOTE: IF YOU DO NOT PROVIDE AN EMAIL ADDRESS, YOU WILL ONLY RECEIVE
  1247. MAJOR VERSION UPDATES. YOU WILL NOT RECEIVE MINOR VERSIONS. PLEASE
  1248. PROVIDE AN EMAIL ADDRESS IF YOU HAVE ANY WAY OF DOING SO.
  1249.  
  1250.